37460687f41fb7d4ff1896192bdddd860f2ac428,platform/lang-api/src/com/intellij/psi/stubs/StubBase.java,StubBase,countChildren,#IElementType#,124

Before Change



  private int countChildren(final IElementType elementType) {
    int count = 0;
    for (StubElement childStub : getChildrenStubs()) {
      if (childStub.getStubType() == elementType) count++;
    }

After Change



  private int countChildren(final IElementType elementType) {
    int count = 0;
    List<StubElement> childrenStubs = getChildrenStubs();
    for (int i = 0, childrenStubsSize = childrenStubs.size(); i < childrenStubsSize; i++) {
      StubElement childStub = childrenStubs.get(i);
      if (childStub.getStubType() == elementType) count++;
    }